home *** CD-ROM | disk | FTP | other *** search
/ CDUTIL 13 / CDUTIL #13 Julio 1995.iso / windows / acadcom / acrx / sample / mkarx.mak < prev    next >
Encoding:
Makefile  |  1995-02-08  |  2.6 KB  |  79 lines

  1. # --------------------------------------------------------------------
  2. # (C) Copyright 1990-1994 by Autodesk, Inc.
  3. # Permission to use, copy, modify, and distribute this software and its
  4. # documentation for any purpose and without fee is hereby granted.   
  5. # THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 
  6. # ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF 
  7. # MERCHANTABILITY ARE HEREBY DISCLAIMED.                                 
  8. # --------------------------------------------------------------------
  9. #
  10. #        ARX make file for 32-bit MSVC++ for Windows and Windows NT
  11. #
  12. # This make file uses the 32-bit edition MSVC++ for Windows and Windows 
  13. # NT to build an ARX Dynamic Link Library.
  14. # You must use the MKARX.BAT file to set up the initial DOS
  15. # environment and launch nmake using this make file.
  16. #
  17. # This make file was created from an MSVC++ IDE project file (which is
  18. # already a make file with extra stuff in it). The unnecessary macros 
  19. # were stripped out and replaced with the actual source file name $(INFILE)
  20. # which is an environment variable set by the MKARX.BAT file to the
  21. # value of the desired source file name.
  22.  
  23. # use if source file extension is .CPP
  24. # EXT = CPP
  25.  
  26. # use if source file extension is .CC
  27. EXT = CC
  28.  
  29. # use if DLL extension is .DLL
  30. # DLLEXT = DLL
  31.  
  32. # use if DLL extension is .ARX
  33. DLLEXT = ARX
  34.  
  35. DEFFILE = $(INFILE).DEF
  36.  
  37. # for debug:
  38. CFLAGS = /nologo /G3 /Zp1 /W3 /Zi /YX /D "_DEBUG" /D "ACRXAPP" \
  39.  /D "RADPACK" /D "RADPACK" /D "ACRXAPP" /D "_X86_" /D "STRICT" /MT \
  40.  /Fd$(INFILE) /Fp$(INFILE)
  41.  
  42. LFLAGS = /NOLOGO /DEBUG /DEBUGTYPE:cv /BASE:0x1c000000 \
  43.  /ENTRY:"DllEntryPoint@12" /SUBSYSTEM:windows \
  44.  user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib olecli32.lib \
  45.  olesvr32.lib shell32.lib
  46.  
  47. # for no debug:
  48. #CFLAGS = /nologo /G3 /Zp1 /W3 /YX /O2 /D "NDEBUG" /D "RADPACK" \
  49. # /D "ACRXAPP" /D "_X86_" /D "STRICT" /FR /MT /Fp$(INFILE)
  50. #LFLAGS = /NOLOGO /BASE:0x1c000000 /ENTRY:"DllEntryPoint@12" \
  51. # /SUBSYSTEM:windows user32.lib gdi32.lib winspool.lib \
  52. # comdlg32.lib advapi32.lib olecli32.lib olesvr32.lib shell32.lib
  53.  
  54. DEP =  \
  55.   $(ACRXINC)\rxdefs.h \
  56.   $(ACRXINC)\adesk.h \
  57.   $(ADSINC)\adslib.h \
  58.   $(ADSINC)\ads.h \
  59.   $(ADSINC)\adsdef.h \
  60.   $(ADSINC)\adscodes.h
  61.  
  62.  
  63. all:  $(INFILE).$(DLLEXT)
  64.  
  65. $(INFILE).OBJ:  $(INFILE).$(EXT) $(DEP)
  66.   $(CPP) $(CFLAGS) /c /Tp$(INFILE).$(EXT)
  67.  
  68. $(INFILE).$(DLLEXT):  $(INFILE).OBJ $(LIBS_EXT) $(DEFFILE) 
  69.   echo >NUL @<<$(INFILE).CRF
  70. $(INFILE).OBJ 
  71. -DLL -OUT:$(INFILE).$(DLLEXT)
  72. RXAPI.LIB
  73.  
  74.  
  75. -def:$(DEFFILE) -implib:$(INFILE).lib
  76. <<
  77.  
  78.   link $(LFLAGS) @$(INFILE).CRF
  79.